home *** CD-ROM | disk | FTP | other *** search
- I have written a small Novell network utility that determines a workstations
- Internet (IP) address on the fly. This utility is to be used with the
- Clarkson University modified NCSA Telnet and FTP software (CUTCP/CUTE).
-
- The original idea was borrowed from Mark Bramwell's GET-IP, but enhanced
- to take advantage of the Clarkson University's modification allowing the use of
- environment variables as entries in CONFIG.TEL.
-
- Using this utility, our network now maintains one copy of CONFIG.TEL, and
- has FTP and TELNET batch files which are executed by the users.
-
- In addition, this utility can be used in a multi-server environment so that
- you do not receive conflicting IPs as results from using GET-IP.
-
- This utility builds the "myip=..." string as can be found in a CONFIG.TEL file,
- locks out a semaphore, sets the environment variable specified with the string,
- and spawns the specified program. Upon exit of the program, the semaphore is
- released.
-
- The format of the command is as follows:
-
- CU-IP baseIP beg end server var prog [args ...]
-
- where
- baseIP is the base range of your Internet Address
- beg is the beginning of a range of valid IP addresses
- end is the ending of the range of valid IP addresses
- server is the server in which to lock the IP address on
- var is the environment variable to use, eg. $CUTCP1
- prog is the program to execute, eg. TN3270 or FTPBIN
- args are the parameters to the program to execute
-
- Given that our CUTCP software (and CUTCP-IP.EXE) is located at
- Z:\APPS\TELNET
- and our Novell File Server's name is OZ, we have the following batch files
- for TELNET (tn3270) and FTP (ftpbin):
-
- ----------------------------- Begin TELNET.BAT ----------------------------
- @echo off
- cd z:\apps\telnet
- z:cu-ip 129.130.75 220 235 oz $CUTCP1 z:tn3270.exe -h z:config.tel %1 %2
- cd z:\
- ------------------------------- End TELNET.BAT ----------------------------
-
- ------------------------------- Begin FTP.BAT -----------------------------
- @echo off
- cd z:\apps\telnet
- z:cu-ip 129.130.75 220 235 oz $CUTCP1 z:ftpbin.exe -h z:config.tel %1 %2
- cd z:\
- -------------------------------- End FTP.BAT ------------------------------
-
- I place no restrictions on the use of this software. This software may not be
- sold in any form and is freely distributable as long as this document
- accompanies the software.
-
- If you have suggestions and/or comments, please send them to
-
- Eric DeVolder
- devolder@matt.ksu.ksu.edu
-
- In ending, I can not be responsible for any damages caused by this program,
- though it does not read a single file. Enjoy.
-